package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class OnDutyProduct {
    private String id;

    private String itemTypeId;

    private String deviceCode;

    private String planId;

    private String planType;

    private String planCode;

    private String planName;

    private String gradeValue;

    private String thNumber;

    private String peieceNum;

    private String totalNum;

    private String productPieceNum;

    private String productStatus;

    private String operateUserName;

    private String remark;

    private String whiteDay;

    private String dutyDay;

    private String status;

    private Date createTime;

    private Date updateTime;

    private int addPieceCount;

    private String userId;
    //班长
    private String userName;

    private int taskCount;

    private int completeNum;

    private String jiTai;
    private String completePercent;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "空置", "1", "待机","2","生产");
    public static final transient Map<String, String> STATUSPLANMAP =
            ImmutableMap.of("1", "订单", "2", "备货");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getItemTypeId() {
        return itemTypeId;
    }

    public void setItemTypeId(String itemTypeId) {
        this.itemTypeId = itemTypeId == null ? null : itemTypeId.trim();
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId == null ? null : planId.trim();
    }

    public String getPlanTypeCn() {
        return STATUSPLANMAP.get(getPlanType());
    }
    public String getPlanType() {
        return planType;
    }

    public void setPlanType(String planType) {
        this.planType = planType == null ? null : planType.trim();
    }

    public String getPlanCode() {
        return planCode;
    }

    public void setPlanCode(String planCode) {
        this.planCode = planCode == null ? null : planCode.trim();
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName == null ? null : planName.trim();
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue == null ? null : gradeValue.trim();
    }

    public String getThNumber() {
        return thNumber;
    }

    public void setThNumber(String thNumber) {
        this.thNumber = thNumber == null ? null : thNumber.trim();
    }

    public String getPeieceNum() {
        return peieceNum;
    }

    public void setPeieceNum(String peieceNum) {
        this.peieceNum = peieceNum == null ? null : peieceNum.trim();
    }

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum == null ? null : totalNum.trim();
    }

    public String getProductStatusCn() {
        return STATUSMAP.get(getProductStatus());
    }
    public String getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(String productStatus) {
        this.productStatus = productStatus == null ? null : productStatus.trim();
    }

    public String getOperateUserName() {
        return operateUserName;
    }

    public void setOperateUserName(String operateUserName) {
        this.operateUserName = operateUserName == null ? null : operateUserName.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getWhiteDay() {
        return whiteDay;
    }

    public void setWhiteDay(String whiteDay) {
        this.whiteDay = whiteDay == null ? null : whiteDay.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getProductPieceNum() {
        return productPieceNum;
    }

    public void setProductPieceNum(String productPieceNum) {
        this.productPieceNum = productPieceNum;
    }

    public int getAddPieceCount() {
        return addPieceCount;
    }

    public void setAddPieceCount(int addPieceCount) {
        this.addPieceCount = addPieceCount;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getTaskCount() {
        return taskCount;
    }

    public void setTaskCount(int taskCount) {
        this.taskCount = taskCount;
    }

    public String getJiTai() {
        return jiTai;
    }

    public void setJiTai(String jiTai) {
        this.jiTai = jiTai;
    }

    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }

    public int getCompleteNum() {
        return completeNum;
    }

    public void setCompleteNum(int completeNum) {
        this.completeNum = completeNum;
    }

    public String getCompletePercent() {
        return completePercent;
    }

    public void setCompletePercent(String completePercent) {
        this.completePercent = completePercent;
    }
}